import java.util.Scanner;

public class Demo3 {
    public static void main(String[]args){
        System.out.println("**********************************\n" +
                "*******微型计算器*******************\n" +
                "*******1.求和**********************\n" +
                "*******2.求差**********************\n" +
                "*******3.求积**********************\n" +
                "*******4.求商**********************\n" +
                "*******5.求余**********************\n" +
                "*******6.推出**********************\n" +
                "*******选择你想要执行的操作***********");
        Scanner in =new Scanner(System.in);
        int x= in.nextInt();
        if (x==1){
            System.out.println("请输入两个数字求和");
            Scanner input1= new Scanner(System.in);
            int a = input1.nextInt();
            Scanner input2= new Scanner(System.in);
            int b = input2.nextInt();
            System.out.println("和为："+(a+b));
        }
        else if (x==2){
            System.out.println("请输入两个数字求差");
            Scanner input1= new Scanner(System.in);
            int a = input1.nextInt();
            Scanner input2= new Scanner(System.in);
            int b = input2.nextInt();
            System.out.println("差为："+(a-b));
        }
        else if (x==3){
            System.out.println("请输入两个数字求积");
            Scanner input1= new Scanner(System.in);
            int a = input1.nextInt();
            Scanner input2= new Scanner(System.in);
            int b = input2.nextInt();
            System.out.println("积为："+(a*b));
        }
        else if (x==4){
            System.out.println("请输入两个数字求商");
            Scanner input1= new Scanner(System.in);
            int a = input1.nextInt();
            Scanner input2= new Scanner(System.in);
            int b = input2.nextInt();
            System.out.println("商为："+(a/b));
        }
        else if (x==5){
            System.out.println("请输入两个数字求余");
            Scanner input1= new Scanner(System.in);
            int a = input1.nextInt();
            Scanner input2= new Scanner(System.in);
            int b = input2.nextInt();
            System.out.println("余为："+(a%b));
        }
        else if (x==6){
            System.out.println("退出程序");
        }
    }

}